//
//  Utility.h
//  AppFrameWork
//
//  Created by Le Anh Tai on 7/21/13.
//  Copyright (c) 2013 Le Anh Tai. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UIConstants.h"

@interface Utility : NSObject

+ (CGFloat)estimateTimeWithDis:(CGFloat) dis andVelocity:(CGFloat) vel;
+ (NSString*)stringCurrencyForInteger:(NSInteger)value;
+ (void)createTwoTextStyleInSingleUILabel: (UILabel *) myLabel firstText:(NSString*)firstText secondText:(NSString*)secondText;
+ (void) showLoading:(UIView*)vw withMsg:(NSString*)msg;
+ (void) hideLoading:(UIView*)vw;
+ (void) showInfoMsg:(NSString*)msg inView:(UIView*)vw;
+ (NSString*)makeChangedString:(CGFloat)value
                      preValue:(CGFloat)preValue
               ignoreZeroValue:(BOOL)ignoreZeroValue
          changedPerInDiffLine:(BOOL)changedPerInDiffLine;
+ (UILabel*)createLabelWithFont:(UIFont*)font textColor:(UIColor *)textColor;
+ (id)getObject:(NSArray*)objects atIndex:(NSInteger)index;
+ (NSString*)getDateFromString:(NSString*)strDate inputFormat:(NSString*)inputFormat outputFormat:(NSString*)outputFormat;
+ (float)convertStringToFloat:(NSString *)value;
+ (BOOL)isDate:(NSDate*)date1 ssGreaterOrEqualDate:(NSDate*)date2;
+ (BOOL)isEmptyString:(NSString *)text;
+ (NSString *)standardizeRateValue:(NSString *)rateValue;

+ (void)openRateApp;

@end
